﻿using System;
using System.Collections.Generic;
using System.Text;
using Jw.Core;

namespace Jw.Models
{
    [Module("Pacm")]
    public class p_ZlmbjhService : ServiceBase<p_Zlmbjh>
    {
        public List<sys_roleMenuColumnMap> GetHiddenColumns(string parm)
        {

            List<sys_roleMenuColumnMap> list = new List<sys_roleMenuColumnMap>();
            switch (parm)
            {
                    //铸造
                case "1":
                    list.Add(new sys_roleMenuColumnMap() { FieldName = "Zlmbjh_A199D", IsReject = true });
                    break;
                    //电解
                case "2":
                    list.Add(new sys_roleMenuColumnMap() { FieldName = "Zlmbjh_A199X", IsReject = true });
                    break;
                    //组装
                case "3":
                    break;
            }
            return list;
        }

    }

    public class p_Zlmbjh : ModelBase
    {

        /// <summary>
        /// 单据编号
        /// <summary>
        [PrimaryKey]
        public string Zlmbjh_BillNo { get; set; }
        /// <summary>
        /// 计划年
        /// <summary>
        public string Zlmbjh_Year { get; set; }
        /// <summary>
        /// 计划月
        /// <summary>
        public string Zlmbjh_Month { get; set; }
        /// <summary>
        /// 单位ID
        /// <summary>
        public string Zlmbjh_Dwid { get; set; }
        /// <summary>
        /// 单位名称
        /// <summary>
        public string Zlmbjh_Dwmc { get; set; }
        /// <summary>
        /// 原铝质量A199.70以上率
        /// <summary>
        public decimal? Zlmbjh_A199D { get; set; }
        /// <summary>
        /// 原铝质量A199.60以上率
        /// <summary>
        public decimal? Zlmbjh_A199X { get; set; }
        /// <summary>
        /// 第一次检验合格率
        /// <summary>
        public decimal? Zlmbjh_Jyhgl { get; set; }
        /// <summary>
        /// 出厂合格率
        /// <summary>
        public decimal? Zlmbjh_Cchgl { get; set; }
        /// <summary>
        /// 第一次组装合格率
        /// <summary>
        public decimal? Zlmbjh_Zzhgl { get; set; }
        /// <summary>
        /// 磷生铁配比合格率
        /// <summary>
        public decimal? Zlmbjh_Pbhgl { get; set; }
        /// <summary>
        /// 备注说明
        /// <summary>
        public string Zlmbjh_Remark { get; set; }
        /// <summary>
        /// 创建人
        /// <summary>
        public string CreatePerson { get; set; }
        /// <summary>
        /// 创建日期
        /// <summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 更新人
        /// <summary>
        public string UpdatePerson { get; set; }
        /// <summary>
        /// 更新日期
        /// <summary>
        public DateTime? UpdateDate { get; set; }
        /// <summary>
        /// 审核人
        /// <summary>
        public string ApprovePerson { get; set; }
        /// <summary>
        /// 审核日期
        /// <summary>
        public DateTime? ApproveDate { get; set; }
        /// <summary>
        /// 审核状态
        /// <summary>
        public string ApproveState { get; set; }
        /// <summary>
        /// 审核说明
        /// <summary>
        public string ApproveRemark { get; set; }
    }
}
